﻿//===============================================================================
// File: SendMessageVM.cs
// Author:Veiller Hu
// CLR Version：4.0.30319.1
// Created Date:  2011/3/27 12:17:57 AM 
// Summary:  
//===============================================================================
//
// Copyright (c) East China Information Technology Corporation. All rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
// KIND, WHETHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//===============================================================================
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace GPMS.Model
{
    public class MessageVM
    {
        public Message Message { get; set; }
        [Display(Name = "收信用户")]
        [Required(ErrorMessage = "必须填写发信用户")]
        [RemoteCustom("ReceiveName", "Verify", ErrorMessage = "不存在此用户")]
        public string ReceiverName { get; set; }

        [Display(Name = "发信用户")]
        [Required(ErrorMessage = "必须填写收信用户")]
        [RemoteCustom("ReceiveName", "Verify", ErrorMessage = "不存在此用户")]
        public string SenderName { get; set; }
    }
}
